package com.core.xml;
import java.io.*;
import java.net.*;
import java.util.*;

import org.jdom.*;
import org.jdom.filter.*;
import org.jdom.input.*;
import org.jdom.output.*;
import org.xml.sax.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public interface IDOMXMLBaseObject {
  void CreateXmlEmpty();
  boolean InitXMLString(String DataString) ;
  boolean InitXMLFile(File file) ;
  boolean InitXMLURI(String uri) ;
  boolean InitXMLStream(InputStream is) ;
  Element CreateElement(String ElementName) ;
  List BeginEnumerate(Element ParentNode) ;

  List getElementsByTagName(String NodeName) ;
  Element Enumerate(List nodelist, int Index) ;
  void EndEnumerate() ;
  Element GetElementByName(String ElementName) ;
  Element GetElementByName(Element e, String Name) ;
  Element AddChildElement(Element ParentNode, String ElementName) ;
  Element AddChildElement(Element ParentNode, Element E) ;
  Element InsertChildElementBefore(Element ParentNode, Element BeforeNode, String ElementName) ;
  Element InsertChildElementBefore(Element ParentNode, Element BeforeNode, Element E) ;
  boolean RemoveElement(Element ParentNode, int Index) ;
  boolean RemoveElement(Element ParentNode, Element E) ;
  void SetElementValue(Element node, String Name, String Value) ;
  String GetElementValue(Element node, String Name) ;
  String GetElementValue(Element node, String Name, String Default) ;
  String RepleaceValue1(String Value) ;
  String RepleaceValue2(String Value) ;
  String GetRootXMLString() ;
  String GetXMLString(Document doc) ;
  Element CopyElementValue(Element srcnode, Element desnode) ;

  Element getPreviousSibling(Element e) ;

  Element getNextSibling(Element e) ;
  boolean SaveToFile(String PathName) ;
}
